package com.guoxin.part1.chapter6;

/**
 * 线程组销毁
 *
 * @author guoxin
 * @date 2019/8/28
 */
public class ThreadGroupDestroy {
    public static void main(String[] args) {
        ThreadGroup group = new ThreadGroup("TestGroup");
        ThreadGroup mainGroup = Thread.currentThread().getThreadGroup();
        System.out.println("group.isDestroyed=" + group.isDestroyed());
        mainGroup.list();
        group.destroy();
        System.out.println("group.isDestroyed=" + group.isDestroyed());
        mainGroup.list();
    }
}
